package com.yxw.yx_hotel.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @author liuxin
 * @date 2023.0913
 */
@EqualsAndHashCode(callSuper = false)
@Data
@ToString(callSuper=true)
@ApiModel(value="UpdateRoomFeeDto", description="宿舍费用修改Dto")
public class UpdateRoomFeeDto implements Serializable {

    @NotNull(message = "费用ID不能为空")
    @ApiModelProperty(value = "费用ID")
    private Long feeId;

    @NotBlank(message = "费用年月不能为空")
    @ApiModelProperty(value = "费用年月 yyyy-MM格式")
    private String month;

    @NotBlank(message = "费用内容不能为空")
    @ApiModelProperty(value = "费用内容")
    private String note;

    @NotBlank(message = "费用金额不能为空")
    @ApiModelProperty(value = "费用金额")
    private String money;
}
